﻿using Coldairarrow.Entity.PB;
using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Entity.DTO
{
  public  class PB_DispatchDetailDTO: PB_DispatchDetail
    {
        /// <summary>
        /// 物料名称
        /// </summary>
        public String MaterialIdName { get; set; }
        /// <summary>
        /// 物料编号
        /// </summary>
        public String  MateralldCode { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public String ProName { get; set; }
        /// <summary>
        /// 生产任务单名称
        /// </summary>
        public String ProductionOrderName { get; set; }
        /// <summary>
        /// 生产任务单批次号·
        /// </summary>
        public String BatchNumber { get; set; }
        /// <summary>
        /// 生产任务单编号
        /// </summary>
        public String Code { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public String SubName { get; set; }

        /// <summary>
        /// 物料规格
        /// </summary>
        public string MaterSpec { get; set; }

        /// <summary>
        /// 单重
        /// </summary>

        public Double? DanZhong { get; set; }

        /// <summary>
        /// 总重
        /// </summary>

        public Double? Zongzhong { get; set; }


        public string MyProperty { get; set; }
        /// <summary>
        /// 加工要求
        /// </summary>
        public string ProcessingRequirements { get; set; }
        /// <summary>
        /// 楼号
        /// </summary>
        public string BuildNo { get; set; }

        /// <summary>
        /// 隶属成品名称
        /// </summary>
        public string SubordinateProductName { get; set; }
        /// <summary>
        /// 图纸
        /// </summary>
        public string Drawing { get; set; }
/// <summary>
        /// 算料
        /// </summary>
        public string Calculation { get; set; }
        public string Calculation1 { get; set; }
        public string Calculation2 { get; set; }
        public string Calculation3 { get; set; }
        public string Calculation4 { get; set; }
        public string Calculation5 { get; set; }
        public string Calculation6 { get; set; }
        public string Calculation7 { get; set; }
        public string Calculation8 { get; set; }
        public string Calculation9 { get; set; }
        public string Calculation10 { get; set; }
        /// <summary>
        /// 组装件物料明细
        /// </summary>
        public List<BomMaterialDetailDTO> BomMaterialDetail { get; set; }

  }

    #region 组装件获取BOM明细物料信息

    public class BomMaterialDetailDTO
    {
        public string Id { get; set; }

        /// <summary>
        /// BOM主物料Id
        /// </summary>
        public string PmaterialId { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public string MaterialId { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 物料规格
        /// </summary>
        public string MaterialSpec { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public double? Quantity { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public string QrCode { get; set; }

    }

    #endregion

}
